package com.prs.crm.domain.cqunicom;

import java.util.Date;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.BaseEntity;

/**
 * @author  WangTing
 *
 * 创建时间：2011-3-22 
 * 
 */

////////////////影片

@Entity
@Table(name="cq_film")
public class Film extends BaseEntity{
	
	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	
	
	private Integer id;
	
	 /**
	 *影片名称
	 * 
	 */
	private String filmName;
	
	 /**
	 *电影院名称
	 * 
	 */
	private String movieName;
	
	 /**
	 *
	 * 上映时间
	 */
	private String  showtime;
	/**
	 * 放映开始时间
	 * 
	 */
	private Date showStartTime;
	/**
	 * 放映结束时间
	 */
	private Date showEndTime;
	 /**
	 *
	 * 放映地点
	 */
	private String  place;


	
	 /**
	 *
	 * 影片内容
	 */
	
	private String content;
	
	 /**
	 *
	 * 备注
	 */
	
	private String  remark;
	 /**
	 *
	 * 运费
	 */
	
	private String  cost;
	 /**
	 *
	 * 票价
	 */
	
	private String  price;
	
	/**
	 * 派单列表
	 */
	@OneToMany(mappedBy = "filmB")
	@Cascade({ org.hibernate.annotations.CascadeType.ALL,
			org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
	private Set<PieList> pieList;
	

	@ManyToOne
	private Movie movieA;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getFilmName() {
		return filmName;
	}

	public void setFilmName(String filmName) {
		this.filmName = filmName;
	}

	public String getCost() {
		return cost;
	}


	public Movie getMovieA() {
		return movieA;
	}

	public void setMovieA(Movie movieA) {
		this.movieA = movieA;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void setCost(String cost) {
		this.cost = cost;
	}

	public Date getShowStartTime() {
		return showStartTime;
	}

	public void setShowStartTime(Date showStartTime) {
		this.showStartTime = showStartTime;
	}

	public Date getShowEndTime() {
		return showEndTime;
	}

	public void setShowEndTime(Date showEndTime) {
		this.showEndTime = showEndTime;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getShowtime() {
		return showtime;
	}

	public Set<PieList> getPieList() {
		return pieList;
	}

	public void setPieList(Set<PieList> pieList) {
		this.pieList = pieList;
	}

	public void setShowtime(String showtime) {
		this.showtime = showtime;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getMovieName() {
		return movieName;
	}

	public void setMovieName(String movieName) {
		this.movieName = movieName;
	}

	
	
	
}
